﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace Lib
{
    public class TransactionValue
    {
        public string Name { get; set; }
        public string AttName { get; set; }
        public int AttIndex { get; set; }
        public int Count { get; set; }

        public TransactionValue() { }
        public TransactionValue(string val)
        {
            Name = val;
            Count = 1;
        }

        public TransactionValue(string val, int attIndex):this(val)
        {
            AttIndex = attIndex;
        }

        public TransactionValue(string val,int attIndex, string attName)
            : this(val,attIndex)
        {
           AttName = attName;
        }


        public TransactionValue(TransactionValue v)
            
        {
            AttName = v.AttName;
            AttIndex = v.AttIndex;
            Name = v.Name;
            Count = 1;
        }

        public override string ToString()
        {
            return AttName + ": " + Name ;
        }
        
    }
}
